package multithreaded;

public class ThreadTest {
    public static void main(String[] args) {
        new MyThread().start();
        while (true)
            System.out.println("Main thread run...");
    }
}
// 继承Thread 重写run方法
class MyThread extends Thread {
    @Override
    public void run() {
        while (true)
            System.out.println("My thread run....");
    }
}
